<?php

//define('LINK_ROOT', 'http://'. $_SERVER['HTTP_HOST']);
//define('DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']);
define('LINK_ROOT', 'http://' . $_SERVER['HTTP_HOST'] . '/02_Tesdo');
define('DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT'] . '/02_Tesdo');
define('DIR_SHARED', '/shared/');
define('DIR_SHARED_CONFIG', '/shared/config/');
define('DIR_SHARED_DAO', '/shared/dao/');
define('DIR_SHARED_DTO', '/shared/dto/');
define('DIR_SHARED_LIBRARIES', '/shared/libraries/');
define('DIR_SHARED_PLUGIN', '/shared/plugin/');
define('DIR_SHARED_UPLOAD', '/shared/upload/');
define('DIR_SHARED_UPLOAD_ADBOX', '/shared/upload/adbox/');
define('DIR_SHARED_UPLOAD_JOURNAL_IMAGES', '/shared/upload/journal_images/');
define('DIR_SHARED_UPLOAD_PDF_PAPERS', '/shared/upload/pdf/papers/');
define('DIR_SHARED_UPLOAD_CONFERENCE_FILES', '/shared/upload/conference_files/');
define('DIR_SHARED_UPLOAD_NEWS_FILES', '/shared/upload/news_files/');
define('DIR_SHARED_UPLOAD_SUB_MENU_FILES', '/shared/upload/sub_menu_files/');
define('DIR_LAYOUT', '/layout/');
define('DIR_LAYOUT_CSS', '/layout/css/');
define('DIR_LAYOUT_JS', '/layout/js/');
define('DIR_LAYOUT_IMAGES', '/layout/images/');
define('DIR_INCLUDE', '/include/');
define('DIR_ADMIN', '/admin/');
define('DIR_ADMIN_INCLUDE', '/admin/include/');
define('DIR_ADMIN_LAYOUT', '/admin/layout/');
define('DIR_ADMIN_LAYOUT_IMAGE', '/admin/layout/images/');
define('DIR_ADMIN_LAYOUT_CSS', '/admin/layout/css/');
define('DIR_ADMIN_LAYOUT_JS', '/admin/layout/js/');

class config {

    private $db_name = 'techstor_tesdo';
    private $db_host = 'localhost';
    private $db_user = 'techstor_admin';
    private $db_pass = 'techstorm';

//    private $db_name = 'p02';
//    private $db_host = 'localhost';
//    private $db_user = 'root';
//    private $db_pass = '';

    public function get_db_name() {
        return $this->db_name;
    }

    public function get_db_host() {
        return $this->db_host;
    }

    public function get_db_user() {
        return $this->db_user;
    }

    public function get_db_pass() {
        return $this->db_pass;
    }

}
